package com.example.sofa_module;

import com.chad.library.adapter.base.entity.MultiItemEntity;
import com.example.common.mvvm.BaseEntity;

import java.io.Serializable;
import java.util.List;

public class SofaFeedEntity extends BaseEntity   {
    public DataBean data;

    public static class DataBean  {
        public List<VideoData> data;

        public static class VideoData implements MultiItemEntity,Serializable{
            public Integer id;
            public Long itemId;
            public Integer itemType;
            public Long createTime;
            public Integer duration;
            public String feeds_text;
            public Integer authorId;
            public Object activityIcon;
            public String activityText;
            public Integer width;
            public Integer height;
            public String url;
            public String cover;
            public DataBean.VideoData.AuthorBean author;
            public DataBean.VideoData.TopCommentBean topComment;
            public DataBean.VideoData.TopCommentBean.UgcBean ugc;
            public int type;
            @Override
            public int getItemType() {
                return type;
            }

            public static class AuthorBean implements Serializable{
                public Integer id;
                public Integer userId;
                public String name;
                public String avatar;
                public String description;
                public Integer likeCount;
                public Integer topCommentCount;
                public Integer followCount;
                public Integer followerCount;
                public String qqOpenId;
                public Long expires_time;
                public Integer score;
                public Integer historyCount;
                public Integer commentCount;
                public Integer favoriteCount;
                public Integer feedCount;
                public Boolean hasFollow;
            }

            public static class TopCommentBean implements Serializable {
                public Integer id;
                public Long itemId;
                public Long commentId;
                public Integer userId;
                public Integer commentType;
                public Long createTime;
                public Integer commentCount;
                public Integer likeCount;
                public String commentText;
                public String imageUrl;
                public String videoUrl;
                public Integer width;
                public Integer height;
                public Boolean hasLiked;
                public DataBean.VideoData.AuthorBean author;
                public DataBean.VideoData.TopCommentBean.UgcBean ugc;

                public static class UgcBean  implements Serializable{
                    public Integer likeCount;
                    public Integer shareCount;
                    public Integer commentCount;
                    public Boolean hasFavorite;
                    public Boolean hasLiked;
                    public Boolean hasdiss;
                    public Boolean hasDissed;
                }
            }
        }
    }
}
